package com.example.zzh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 产品价格扩展
 * </p>
 *
 * @author zzh
 * @since 2023-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ZzhProductPrice对象", description="产品价格扩展")
public class ZzhProductPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品id")
    private Long materialId;

    @ApiModelProperty(value = "商品条码")
    private String barCode;

    @ApiModelProperty(value = "商品单位")
    private String commodityUnit;

    @ApiModelProperty(value = "多属性")
    private String sku;

    @ApiModelProperty(value = "采购价格")
    private BigDecimal purchaseDecimal;

    @ApiModelProperty(value = "销售价格")
    private BigDecimal wholesaleDecimal;

    @ApiModelProperty(value = "最低售价")
    private BigDecimal lowDecimal;

    @ApiModelProperty(value = "是否为默认单位，1是，0否")
    private String defaultFlag;

    @ApiModelProperty(value = "创建日期")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人编码")
    private String createSerial;

    @ApiModelProperty(value = "更新日期")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人编码")
    private String updateSerial;

    @ApiModelProperty(value = "0删除，1启用，2禁用")
    private Integer status;


}
